<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理界面</title>
<link href="__PUBLIC__/style/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/js/js.js"></script>
</head>
<body id="page">
<h2 class="tag">当前位置：信息管理 &gt; 信息列表</h2>
<div class="box">
  <div class="page_menu">
    	<a href="#">信息列表</a><a href="__URL__/add">添加信息</a>
  </div>
  <div class="infobox">
  	<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" class="table_b">
    <tbody>
    <tr class="table_style_even">
      <th width="5%">选择</th>
      <th width="5%">ID</th>
      <th width="40%">信息标题</th>
      <th width="12%">信息栏目</th>
      <th width="15%">信息时间</th>
      <th width="12%">状态</th>
      <th width="20%">管理操作</th>
    </tr>
    <form action="__URL__/del" method="post" onsubmit="return confirm('删除不可以恢复~确定要删除吗？');"> 
    {loop $list $key $vo}
    <tr onmouseover="this.bgColor='#d1e6f5';" onmouseout="this.bgColor='#fff';" bgcolor="#fff">
       <td align="center" height="15"><input type="checkbox" name="delid[]" /></td>
      <td align="center">{$vo['id']}</td>
      <td align="left"><a href="__URL__/edit-{$vo['id']}.html">{$vo['title']}</a></td>
      <td align="center">{$vo['name']}</td>
      <td align="center">{date('Y-m-d H:i:s',$vo['addtime'])}</td>
      <td align="center">{if $vo['status']==1}已审核{elseif $vo['status']==0}<font color="#FF0000">未审核</font>{/if}|{if $vo['ontop']==1}已推荐{elseif $vo['ontop']==0}<font color="#FF0000">未推荐</font>{/if}</td>
      <td align="center">
      <a href="__URL__/edit-{$vo['id']}.html" class="icon-edit">编辑</a>   <a href="__URL__/del-{$vo['id']}.html>" onclick='return confirm("真的要删除?不可恢复!");' class="icon-del">删除</a></td>
    </tr>
    {/loop}
     <tr>
      <td width="60" class="td" align="center"><input type="checkbox" name="checkall"  id="checkall" onClick="checkAll(this, 'delid[]')" /></td>
      <td colspan="7"><div class="but"><input type="submit" class="button" value="删除"></div><div style="font-size:13px; margin-left:10px; float:right" class="page">{$page}</div></td>
      <div class="clear"></div>
    </tr>
    </form>  
      </tbody></table>
  </div>
</div>
</body>
</html>
